/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package finalsoft;

/**
 *
 * @author Administrator
 */
public class Methods {

    	public static Object[][] getYouWang(Object[][] obj, int ... columnIndex){
		Object[][] newObj = new Object[obj.length][columnIndex.length] ;
		for (int i = 0; i < obj.length; i ++){
			for(int j = 0; j < columnIndex.length; j++){
				newObj[i][j] = obj[i][columnIndex[j]];
			}
		}
		return newObj;
	}

}
